<!DOCTYPE html>
<html lang="en">
#parse('base/head.html')
<body class="no-skin">
<div class="indexHeader">
    #parse('base/top_head.html')
    #parse('base/menu.html')
</div>
<div class="main-container ace-save-state" id="main-container">
    <div class="fp-framework main-content">
        <div class="main-content-inner">
            <div class="page-content">
                <div class="row">
                    <div class="col-sm-2">
                        <div  class="sidebar responsive ace-save-state">
                            <ul class="fp-framework nav nav-list townUl">
                                <li class="townTreeNode open">
                                    <a href="#" >
                                        <i class="menu-icon fa fa-send-o"></i>
                                        <span class="menu-text"> 信息报送 </span>
                                        <b class="arrow fa fa-angle-down"></b>
                                    </a>
                                    <b class="arrow"></b>
                                    <ul class="submenu">
                                        <li id="xxgl_select_99" type="99" class="villTreeNode">
                                            <a href="javacript:void(0);">
                                                <i class="menu-icon fa fa-caret-right"></i>
                                                通知公告
                                            </a>
                                            <b class="arrow"></b>
                                        </li>

                                    </ul>
                                </li>
                                <li class="townTreeNode open">
                                    <a href="#">
                                        <i class="menu-icon fa fa-heart-o"></i>
                                        <span class="menu-text"> 扶贫政策 </span>
                                        <b class="arrow fa fa-angle-down"></b>
                                    </a>
                                    <b class="arrow"></b>
                                    <ul class="submenu">
                                        <li id="xxgl_select_0" class="villTreeNode" type="0">
                                            <a href="javacript:void(0);">
                                                <i class="menu-icon fa fa-caret-right"></i>
                                                扶贫政策
                                            </a>
                                            <b class="arrow"></b>
                                        </li>
                                    </ul>
                                </li>
                                <li class="townTreeNode open">
                                    <a href="#">
                                        <i class="menu-icon fa fa-bullhorn"></i>
                                        <span class="menu-text">通知公告  </span>
                                        <b class="arrow fa fa-angle-down"></b>
                                    </a>
                                    <b class="arrow"></b>
                                    <ul class="submenu">
                                        <li id="xxgl_select_1" class="villTreeNode" type="1">
                                            <a href="javacript:void(0);">
                                                <i class="menu-icon fa fa-caret-right"></i>
                                                示例典范
                                            </a>
                                            <b class="arrow"></b>
                                        </li>
                                    </ul>
                                </li>
                                <li class="townTreeNode open">
                                    <a href="#">
                                        <i class="menu-icon fa fa-share-alt"></i>
                                        <span class="menu-text"> 示例典范 </span>
                                        <b class="arrow fa fa-angle-down"></b>
                                    </a>
                                    <b class="arrow"></b>
                                    <ul class="submenu">
                                        <li id="xxgl_select_2" class="villTreeNode " type="2">
                                            <a href="javacript:void(0);">
                                                <i class="menu-icon fa fa-caret-right"></i>
                                                宣传平台
                                            </a>
                                            <b class="arrow"></b>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="col-sm-10" >
                        <iframe onload="setTimeout(function(){setheight()},1000);"  id="contentFrame" frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no”   style="border:0px;width:100%;"  frameborder="0"  src="$!webPath/xxgl/fpzcList?infoType=$!infoType"></iframe>
                    </div>
                </div>
            </div><!-- /.page-content -->
        </div>
    </div>
</div>
#parse("base/footer.html")
<script>
    function setIframeHeight(iframe) {
        if (iframe) {
            var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
            if (iframeWin.document.getElementsByTagName("body")[0]) {
                iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight-10;
            }
        }
    };

    function setheight(){
//        setIframeHeight(document.getElementById('contentFrame'));
        var BodyHeight=document.documentElement.clientHeight;
        BodyHeight -= 130;
        $("#contentFrame").css({
            "height" : BodyHeight +"px"
        });
    }

    window.onload = function () {
        setIframeHeight(document.getElementById('contentFrame'));
    };
    jQuery(function ($) {
        menuActive(5)
        $(".villTreeNode").on('click',function(){
            $(".villTreeNode").removeClass("fp-active");
            $(".xxbsNode").removeClass("fp-active");
            $(this).addClass('fp-active');
            var type = $(this).attr("type")
            if(type!=99){
                $("#contentFrame")[0].src = "$!webPath/xxgl/fpzcList?infoType=" + type
            }else{
                $("#contentFrame")[0].src = "$!webPath/xxbs/index"
            }
        })
        // 默认页
        $("#xxgl_select_$!infoType").addClass('fp-active');
        if($!infoType>90){
            $("#contentFrame")[0].src = "$!webPath/xxbs/index"
        }
        if($!noticeId>0){
            $("#contentFrame")[0].src = "$!webPath/xxgl/detail?id=$!noticeId"
        }
    });
</script>
</body>
</html>

